#include <stdio.h>
#include <string.h>

int main(){
	char* str="hello note this ";
	char buffer[256+1];
	printf("%s\n",strcpy(buffer,str));
	buffer[2]=0;
	memset(buffer,'\0',256);
	printf("%s\n",strncpy(buffer,str,1));
	
	printf("%s\n",strcat(buffer,str));
	
	char *pe=strchr(buffer,'e');
	printf("first e at %s pos:%d\n",buffer,pe-buffer);
	printf("%s\n",strchr(buffer,'e'));
	printf("%s\n",strrchr(buffer,'l'));
	
	printf("strspn: %d\n",strspn(buffer,str));
	printf("strspn: %d\n",strcspn(buffer,str));	
	
	
	return 0;
}